<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title></title>

    <script type="text/javascript">

        function readJSon(jsonSrc) {
            var foo = {};
            foo.bar = "new property";
            foo.baz = new Date;

            var JSONfoo = JSON.stringify(foo);
            alert(JSONfoo)
            alert(JSON.parse(JSONfoo).baz)

            alert(jsonSrc);
            //var myObject = eval('(' + jsonSrc + ')')
            var myObject = JSON.parse(jsonSrc);
            alert("JSON parser is present:" + myObject.weight);
        }

    </script>

</head>
<body>

    <form>
        <textarea rows="10" cols="20" id="jsonArea"></textarea>
        <input type="button" value="Evaluate" onclick="readJSon(jsonArea.value)">
    </form>

</body>
</html>